/**
 * 角色管理
 */
const Role = require("../model/role");

module.exports = {
    findAll: (params) => {
        return Role.findAll()
    },
    create: (params) => {
        return Role.create(params)
    },
    update: (params) => {
        return Role.update(params, { where: { id: params.id } })
    },
    del: (params) => {
        return Role.destroy({ where: params })
    }
}